"use strict";
exports.__esModule = true;
exports.logout = exports.getInfo = exports.getList = exports.getRoutes = exports.login = void 0;
var request_1 = require("@/utils/request");
function login(data) {
    // return request({
    //   url: '/vue-admin-template/user/login',
    //   method: 'post',
    //   data
    // })
    return request_1["default"].post('admin/login', data);
    // return request.get('', data)
}
exports.login = login;
function getRoutes(data) {
    return request_1["default"].get('admin/path', { params: data });
}
exports.getRoutes = getRoutes;
function getList(token) {
    return (0, request_1["default"])({
        url: '/admin/list',
        method: 'get',
        params: { token: token }
    });
}
exports.getList = getList;
function getInfo(token) {
    return (0, request_1["default"])({
        url: '/vue-admin-template/user/info',
        method: 'get',
        params: { token: token }
    });
}
exports.getInfo = getInfo;
function logout() {
    return (0, request_1["default"])({
        url: '/vue-admin-template/user/logout',
        method: 'post'
    });
}
exports.logout = logout;
